<link rel="stylesheet" href="css/style.css">
<%@ page import="java.util.Map" %>
<%@ page import="java.nio.charset.StandardCharsets" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<div class="mainbox">
<div class="form">
<%
Map <String, String>message =(Map<String,String>)session.getAttribute("Login");
String portrait = (String)session.getAttribute("portrait");
String name = (String)session.getAttribute("username");
%>
<ul id="userinfo">
<img id="portrait" src="data:image/jpg;base64,<%= portrait %>" alt="">
<form action="/upload" enctype="multipart/form-data" method ="post" >
  <input type="file" name="portrait" /><br/>
  <input type="submit" name="upload" value="上传" />
</form>
<%
  for(String Key: message.keySet())
  {%>
<li><span><%=Key%></span><%=message.get(Key)%></li>
  <%}%>
</ul>
<a class="logoutbutton" href="https://cas.dgut.edu.cn/logout?callback=http://localhost:8080/logout">退出</a>
</div>
</div>
